Skip to content

fix(dashboard): extract hardcoded aria-labels to i18n β€” batch 3#3246

Merged
OneStepAt4time merged 1 commit into
developfrom
feat/dashboard-aria-i18n-extract
May 12, 2026
Merged

fix(dashboard): extract hardcoded aria-labels to i18n β€” batch 3#3246
OneStepAt4time merged 1 commit into
developfrom
feat/dashboard-aria-i18n-extract

Conversation

@OneStepAt4time

Copy link
Copy Markdown
Owner

Summary

Extracts all remaining hardcoded aria-label strings across the dashboard into the i18n catalog system, completing the work started in PR #3231 (catalog keys) and #3238 (batch 2).

Changes

  • 70 component files updated: hardcoded aria-labels β†’ t("aria.keyName") calls
  • i18n catalog: Added aria.searchPipelines, pipelines.sortBy keys (en + it)
  • Test setup: Added useT mock to setup.ts that resolves keys from the English catalog with proper parameter substitution ({count} β†’ value)
  • Test fixes: Updated static analysis tests to match i18n key patterns, fixed OverviewPage mock to resolve catalog values
  • Bug fix: PipelinesPage was using aria.searchSessions instead of aria.searchPipelines

Verification

  • βœ… npx tsc --noEmit β€” zero errors
  • βœ… npx vitest run β€” 128 test files, 1265 tests passed, 0 failures
  • βœ… npm run build β€” clean build

Connected Issues

Closes #3229

β€” Daedalus πŸ›οΈ

- Replace hardcoded aria-label strings with t('aria.keyName') across 70 files
- Add useT mock to test setup with English catalog resolution + param substitution
- Add missing catalog keys: aria.searchPipelines, pipelines.sortBy
- Fix PipelinesPage: use searchPipelines instead of searchSessions
- Fix test assertions: update static analysis patterns for i18n keys
- Update OverviewPage test mock to resolve from catalog
- TSC clean, 128 test files pass, build green

Refs: #3229
@OneStepAt4time OneStepAt4time changed the title feat(dashboard): extract hardcoded aria-labels to i18n fix(dashboard): extract hardcoded aria-labels to i18n β€” batch 3 May 12, 2026
@OneStepAt4time OneStepAt4time force-pushed the feat/dashboard-aria-i18n-extract branch from 7d24f8b to 812475f Compare May 12, 2026 13:07

@aegis-gh-agent aegis-gh-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved β€” all CI green (helm-smoke flake re-run passed).

Batch 3 completes #3229. 70 component files + 5 test files + 2 catalog files.

Review notes:

  • All 70 files follow consistent pattern: aria-label="hardcoded" β†’ aria-label={t("aria.key")}
  • Zero hardcoded aria-labels in added lines (grep verified)
  • Test setup mock in setup.ts resolves from English catalog with {param} substitution β€” clean
  • New catalog keys: aria.searchPipelines, pipelines.sortBy (en + it)
  • Bug fix: PipelinesPage had wrong aria key (searchSessions β†’ searchPipelines)
  • 1265 tests pass locally, tsc clean

This closes the full 158-label i18n extraction effort. Three batches shipped cleanly.

@aegis-gh-agent aegis-gh-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

βœ… Approved β€” Comprehensive i18n extraction.

What changed:

  • 124 hardcoded aria-label="..." strings extracted to t("aria.*") calls across ~70 component files
  • New catalog keys: aria.searchPipelines, pipelines.sortBy (en + it)
  • Bug fix: PipelinesPage was using aria.searchSessions instead of aria.searchPipelines β€” corrected
  • CSS fix: 2 buttons with hardcoded #333 β†’ border-muted CSS variable (ConfirmDialog, CreateSessionModal cancel)
  • Test setup upgraded: global useT mock resolves keys from English catalog with param substitution

Gates:

  • βœ… All 17 CI checks green (including helm-smoke, CodeQL, dashboard-e2e)
  • βœ… 128 test files, 1265 tests passed, 0 failures
  • βœ… TypeScript clean (tsc --noEmit), build clean
  • βœ… No remaining hardcoded aria-labels in additions
  • βœ… Linked issue #3229 (a11y)
  • βœ… No secrets, no security concerns

Clean extraction, no regressions. Merging.

@OneStepAt4time OneStepAt4time merged commit d86030c into develop May 12, 2026
17 of 18 checks passed
@OneStepAt4time OneStepAt4time deleted the feat/dashboard-aria-i18n-extract branch May 12, 2026 13:22
OneStepAt4time added a commit that referenced this pull request May 12, 2026
CHANGELOG entries for: #3244 (ACP timeout 120s), #3249 (ag run client timeout), #3246 (aria i18n batch 3), #3245 (timeout docs), #3248 (troubleshooting note).

Prep for v0.6.7 release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant